<?php echo form_open('categories/add',array('class'=>'form-vertical form-validate','id'=>'frm'));?>
<fieldset>
    <legend><h4><?php echo $title;?></h4></legend>
    <div class="control-group">
        <label class="control-label">Category</label>
        <div class="controls">
          <input type="text" name="category" placeholder="category" class="form-control" required />
        </div>
    </div>
  <div class="control-group">
    <div class="controls">
        
      <label class="checkbox">
        <input name="activate" type="checkbox" checked="checked" /> Active
      </label>
      <?php echo $form; ?>
    </div>
  </div>
 </fieldset> 

<?php echo form_close();?>